#include <stdio.h>
char student_name[][8]={"张三","李四","王五"}; 
char class_name[][8]={"语文","数学","英语"}; 
int score[3][3]={{80,99,20},{89,76,95},{60,50,96}};
int a,b,yy,max=0;

void search(){ //搜索
    for(int i=0;i<3;i++){
        for(int j=0;j<3;j++){
            if(max<score[i][j]){
                max=score[i][j];
                a=i; //记录坐标
                b=j;
            }
        }
    }
}

int main()
{
    search();
    printf("%d\n",max);
    printf("%s\n",student_name[a]);
    printf("%s\n",class_name[b]);
    return 0;
}